package edu.nf.homework.service;

import edu.nf.homework.dao.Payment;

/**
 * @author CSY
 * @date 2025 - 04 - 16
 *
 */
//@Component("paymentService")
public class PaymentService {
    private Payment payment;

    public PaymentService(Payment payment) {
        this.payment = payment;
    }

    public void payMoney(double amount) {
        payment.pay(amount);
    }
}
